package com.sanploy.fed.push.util;

import com.sanploy.fed.push.resp.BaseBean;
import com.sanploy.fed.push.resp.BaseListResp;
import com.sanploy.fed.push.resp.BaseRspe;

/**
 * Created by Administrator on 2016/8/20.
 */
public class RespUtil {
    public static void baserespSuccessful(BaseRspe baseResp){
        baseResp.setCode(1);
        baseResp.setResponse_time(DateUtil.getCurrentTimestamp());
        baseResp.setMsg("成功");
    }

    public static void baserespFail(BaseRspe baseResp){
        baseResp.setCode(2);
        baseResp.setResponse_time(DateUtil.getCurrentTimestamp());
        baseResp.setMsg("失败，服务器错误");
    }


}
